package myJs.myPkg.reactRouterDom

import japgolly.scalajs.react.CtorType.ChildArg
import japgolly.scalajs.react.{Children, JsFnComponent}
import slinky.readwrite.ObjectOrWritten

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport

/** Created by yz on 20/9/2023
 */
object Outlet {

  @JSImport("react-router-dom", "Outlet")
  @js.native
  object RawComponent extends js.Object

  case class Props()

  val Component = JsFnComponent[Null, Children.Varargs](RawComponent)

  def apply(children: ChildArg*) = Component(children: _*)

}
